﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EBA.IoC
{
    public static class Container
    {
        static IContainer _Container;
        /// <summary>
        /// Default container instance
        /// </summary>
        public static IContainer Default
        {
            get
            {
                if (_Container == null)
                {
                    _Container = new ContainerConfiguration()
                    .CreateContainer();
                }

                return _Container;
            }
            set
            {
                _Container = value;
            }
        }
    }
}
